import {defineStore} from "pinia";

const useSystemStore = defineStore('system', {
    // 为了完整类型推理，推荐使用箭头函数
    state: () => ({
        sideWidth: 250
    }),
    actions: {
        changeSideWidth() {
            this.sideWidth = this.sideWidth === 250 ? 64 : 250
        }
    }
})

export default useSystemStore
